package com.xdf.data_transmitter.service;

import com.xdf.data_transmitter.dao.cloud.MillMapper;
import com.xdf.data_transmitter.model.Mill;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MillServiceImpl implements MillService {
    @Autowired
    private MillMapper dao;
    @Override
    public int deleteByPrimaryKey(String sid) {
        return dao.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(Mill record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(Mill record) {
        return dao.insertSelective(record);
    }

    @Override
    public Mill selectByPrimaryKey(String sid) {
        return dao.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(Mill record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Mill record) {
        return dao.updateByPrimaryKey(record);
    }
}
